<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class M_Comments extends CI_Model{
	
	public function __construct(){
		parent::__construct();
	}

	public function getAll(){
		$this->db->join('fa_post', 'fa_post.id_post = fa_comments.id_post');
		$rs = $this->db->get('fa_comments');

		return $rs->result();
	}

}